using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public enum UICommponents
{
    EquipmentMenu
}

public class UIManager : MonoBehaviour
{
    public static UIManager Instance;

    public GameObject equipmentMenu;

    private void Awake()
    {
        if(Instance == null)
        {
            Instance = this;
        }
        else
        {
            Destroy(gameObject);
        }
    }

    private void Start()
    {
        equipmentMenu.SetActive(false);
    }

    public void DisplayOrHide(UICommponents ui)
    {
        switch (ui)
        {
            case UICommponents.EquipmentMenu:
                equipmentMenu.SetActive(!equipmentMenu.activeSelf);
                break;
        }
    }
}
